﻿namespace DoNet.WechatPay.V2.Entitys
{
    /// <summary>
    /// return_code 等于 SUCCESS 时返回的实体
    /// </summary>
    public class PayResultCode : PayResultReturn
    {
        /// <summary>
        /// 服务商的APPID
        /// </summary>
        public string appid { set; get; } = string.Empty;
        /// <summary>
        /// 商户号
        /// </summary>
        public string mch_id { set; get; } = string.Empty;
        /// <summary>
        /// 子商户公众账号/应用ID
        /// </summary>
        public string sub_appid { set; get; } = string.Empty;
        /// <summary>
        /// 子商户号
        /// </summary>
        public string sub_mch_id { set; get; } = string.Empty;
        /// <summary>
        /// 设备号
        /// </summary>
        public string device_info { set; get; } = string.Empty;
        /// <summary>
        /// 随机字符串
        /// </summary>
        public string nonce_str { set; get; } = string.Empty;
        /// <summary>
        /// 签名
        /// </summary>
        public string sign { set; get; } = string.Empty;
        /// <summary>
        /// 业务结果
        /// </summary>
        public string result_code { set; get; } = string.Empty;
        /// <summary>
        /// 错误代码
        /// </summary>
        public string err_code { set; get; } = string.Empty;
        /// <summary>
        /// 错误代码描述
        /// </summary>
        public string err_code_des { set; get; } = string.Empty;
    }
}
